import utils from '@/utils/index'
export default{
	login:{
		"cellphone":[
			{ validate: (val) => !!val, message: '请输入手机号码'},
			{ validate: (val) => utils.isMobile(val) , message: '请输入正确的手机号码'},
	        // { validate: (val) => val.length >= 3, message: '用户名长度大于3'}
			// { "required": true, "message": "请输入手机号码", "trigger": "blur" },
	  //       { "type": "number", "message": "手机号码必须为数字"}
		],
		"password":[
			{ validate: (val) => !!val, message: '请输入密码'},
		],
		"email": [
			{ validate: (val) => !!val, message: '请输入邮箱'},
	        
		]
	},
	register:{
		"cellphone":[
			{ validate: (val) => !!val, message: '请输入手机号码'},
			{ validate: (val) => utils.isMobile(val) , message: '请输入正确的手机号码'},
		],
		"captcha":[
			{ validate: (val) => !!val, message: '请输入验证码'},
		],
		"password":[
			{ validate: (val) => !!val, message: '请输入密码'},
		],
		"nickname": [
			{ validate: (val) => !!val, message: '请填写昵称'},
		]
	}
}